home *** CD-ROM | disk | FTP | other *** search
/ Aminet 6 / Aminet 6 - June 1995.iso / Aminet / text / hyper / ADtoHT2_0.lha / MyLib.lha / stdlib / free.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-03-05  |  292 b   |  20 lines

  1. #include <stdlib.h>
  2.  
  3. #include <clib/alib_protos.h>
  4.  
  5. #include "Internal.h"
  6.  
  7. /************************************************************************/
  8.  
  9. void free(void *Memory)
  10.  
  11. {
  12.   unsigned long *Mem;
  13.  
  14.   if ((Mem=Memory))
  15.     {
  16.       Mem--;
  17.       LibFreePooled(__MemoryPool,Mem,*Mem);
  18.     }
  19. }
  20.